package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;


public class EmploymentContract extends BaseEntity {

    @Excel(name = "合同ID" )
    private String ecId;  //合同id

    @Excel(name = "序号" )
    private Integer num;  //序号

    @Excel(name = "姓名")
    private String name;  //姓名

    @Excel(name = "部门")
    private String department;  //部门

    @Excel(name = "职务")
    private String post;  //职务

    @Excel(name = "合同类型(劳动合同/劳动协议/聘用协议)" ,width = 30,readConverterExp = "1=劳动合同,2=劳动协议,3=聘用协议")
    private String contractType;  //合同类型 1-劳动合同 2-劳动协议 3-聘用协议

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起始日期yyyy-MM-dd", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;   //合同开始日期

    @Excel(name = "结束日期yyyy-MM-dd", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;    //合同结束日期

    @Excel(name = "状态(正常/到期/终止)" ,readConverterExp = "1=正常,2=到期,3=终止")
    private String status;  //状态  1-正常 2-到期 3-终止

    @Excel(name = "备注")
    private String remark;  //备注

    private Integer fileCount;

    private Date startBeginTime;
    private Date startOverTime;
    private Date endBeginTime;
    private Date endOverTime;

    public Date getStartBeginTime() {
        return startBeginTime;
    }

    public void setStartBeginTime(Date startBeginTime) {
        this.startBeginTime = startBeginTime;
    }

    public Date getStartOverTime() {
        return startOverTime;
    }

    public void setStartOverTime(Date startOverTime) {
        this.startOverTime = startOverTime;
    }

    public Date getEndBeginTime() {
        return endBeginTime;
    }

    public void setEndBeginTime(Date endBeginTime) {
        this.endBeginTime = endBeginTime;
    }

    public Date getEndOverTime() {
        return endOverTime;
    }

    public void setEndOverTime(Date endOverTime) {
        this.endOverTime = endOverTime;
    }

    public String getEcId() {
        return ecId;
    }

    public void setEcId(String contractId) {
        this.ecId = contractId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getFileCount() {
        return fileCount;
    }

    public void setFileCount(Integer fileCount) {
        this.fileCount = fileCount;
    }

    @Override
    public String toString() {
        return "EmploymentContract{" +
                "ecId='" + ecId + '\'' +
                ", num=" + num +
                ", name='" + name + '\'' +
                ", department='" + department + '\'' +
                ", post='" + post + '\'' +
                ", contractType='" + contractType + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", status='" + status + '\'' +
                ", remark='" + remark + '\'' +
                ", fileCount=" + fileCount +
                ", startBeginTime=" + startBeginTime +
                ", startOverTime=" + startOverTime +
                ", endBeginTime=" + endBeginTime +
                ", endOverTime=" + endOverTime +
                '}';
    }
}
